<html xmlns:th="https://www.thymeleaf.org">
<head>
    <title>登录</title>
</head>
<body>
<h1>登录</h1>
<div th:if="${param.fail}">
    错误的用户名密码
</div>
<form th:action="@{/login}" method="post">
    <div>
        <input type="text" name="myusername" placeholder="用户名">
    </div>
    <div>
        <input type="text" name="mypassword" placeholder="密码">
    </div>
    <div>
        <input type="submit" value="登录">
    </div>
</form>
<a th:href="@{/logout}">Log Out</a>
</body>
</html>